class VipPriceListModel {
  bool? success;
  int? code;
  String? message;
  List<VipPriceItemModel>? data;

  VipPriceListModel({this.success, this.code, this.message, this.data});

  VipPriceListModel.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    code = json['code'];
    message = json['message'];
    if (json['data'] != null) {
      data = <VipPriceItemModel>[];
      json['data'].forEach((v) {
        data!.add(VipPriceItemModel.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['success'] = success;
    data['code'] = code;
    data['message'] = message;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class VipPriceItemModel {
  String? descPriceIos;
  int? iosPrice;
  int? price;
  String? descPriceAndroid;
  String? descIos;
  String? name;
  int? discount;
  String? descAndroid;

  VipPriceItemModel(
      {this.descPriceIos,
        this.iosPrice,
        this.price,
        this.descPriceAndroid,
        this.descIos,
        this.name,
        this.discount,
        this.descAndroid});

  VipPriceItemModel.fromJson(Map<String, dynamic> json) {
    descPriceIos = json['descPriceIos'];
    iosPrice = json['iosPrice'];
    price = json['price'];
    descPriceAndroid = json['descPriceAndroid'];
    descIos = json['descIos'];
    name = json['name'];
    discount = json['discount'];
    descAndroid = json['descAndroid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['descPriceIos'] = descPriceIos;
    data['iosPrice'] = iosPrice;
    data['price'] = price;
    data['descPriceAndroid'] = descPriceAndroid;
    data['descIos'] = descIos;
    data['name'] = name;
    data['discount'] = discount;
    data['descAndroid'] = descAndroid;
    return data;
  }
}
